projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dda07d
)
fix bug for not blanking func_hash after context release
author
Andrea Corallo
<andrea_corallo@yahoo.it>
Sun, 11 Aug 2019 08:15:46 +0000
(10:15 +0200)
committer
Andrea Corallo
<akrl@sdf.org>
Wed, 1 Jan 2020 10:33:58 +0000
(11:33 +0100)
src/comp.c
patch
|
blob
|
history
diff --git
a/src/comp.c
b/src/comp.c
index 42186e7ea5d9ef7b5dbc6750cfb75ce752762c91..7f1219780cc0f1079d4b026cf883135e83f1f643 100644
(file)
--- a/
src/comp.c
+++ b/
src/comp.c
@@
-2183,8
+2183,11
@@
DEFUN ("comp-init-ctxt", Fcomp_init_ctxt, Scomp_init_ctxt,
sizeof (void *),
false);
- if (NILP (comp.func_hash))
- comp.func_hash = CALLN (Fmake_hash_table, QCtest, Qequal);
+ /*
+ Always reinitialize this cause old function definitions are garbage collected
+ by libgccjit when the ctxt is released.
+ */
+ comp.func_hash = CALLN (Fmake_hash_table, QCtest, Qequal);
/* Define data structures. */